#!/usr/bin/env python
# -*- conding: utf-8 -*-

"""
@Time     : 2024/9/4 5:33
@Author   : liujingmao
@File     : 4.通用文件加载器.py
"""

from langchain_community.document_loaders import UnstructuredFileLoader

loader = UnstructuredFileLoader("./项目API资料.md")
documents = loader.load()

print(documents)
print(len(documents))
print(documents[0].metadata)
